<script lang='ts' setup>
import { IFormItem } from "../../../type";

interface IProps {
  item: IFormItem
}
interface IEmit {
  (event: "fixData", data: any): void
}
const props = defineProps<IProps>()
const emit = defineEmits<IEmit>()
</script>

<template>
  <el-row :gutter="20">
    <el-col :span="8">
      <el-form-item label='拖拽上传' prop='drag'>
        <el-switch v-model="item.drag"></el-switch>
      </el-form-item>
    </el-col>
    <el-col :span="24">
      <el-form-item label="最大体积(kb)">
        <el-input type="number" v-model.number='item.max' placeholder='文件体积的最大限制' clearable />
      </el-form-item>
    </el-col>
    <el-col :span="24">
      <el-form-item label="提示语">
        <el-input v-model='item.placeholder' placeholder='上传组件下方的提示语' clearable />
      </el-form-item>
    </el-col>
  </el-row>
</template>

<style lang='scss' scoped></style>